using System;
using System.Collections.Generic;
using System.Text;

namespace Weazel.Microblaze.Simulator.Components.Microblaze.Instructions
{
    /// <summary>
    /// Read MSR and clear bits in MSR
    /// </summary>
    public class Msrclr : Instruction
    {

        public override int CycleCount
        {
            get { return 1; }
        }
        public Msrclr()
            : base("msrclr")
        {
        }

        public override void Execute(MicroblazeComponent MicroblazeComponent)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public override string ToString()
        {
            return string.Format("msrclr r{0}, {1}",
                DestinationRegister,
                ImmediateValue
              );
        }
    }
}
